// api.js
import request from '@/utils/request.js';

//getVoteList
export const getVoteList = (data) => {
    return request({
        url: '/vote/getAllVote',
		method: 'GET',
		data
    });
};
//insertVote
export const insertVote = (data) => {
    return request({
        url: '/vote/insertVote',
		method: 'POST',
		data
    });
};

export const insertProject = (data) => {
    return request({
        url: '/project/insertProject',
		method: 'POST',
		data
    });
};

export const updateVote = (data) => {
    return request({
        url: '/vote/updateVote',
		method: 'PUT',
		data
    });
};

